package com.coursehub.exercise.repository;

import com.coursehub.exercise.entity.WrongQuestionBankQuestion;
import com.coursehub.exercise.entity.WrongQuestionBankQuestionId;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface WrongQuestionBankQuestionRepository extends JpaRepository<WrongQuestionBankQuestion, WrongQuestionBankQuestionId> {
    List<WrongQuestionBankQuestion> findByIdWrongQuestionBankId(String wrongQuestionBankId);
    boolean existsByIdWrongQuestionBankIdAndIdQuestionId(String wrongQuestionBankId, String questionId);
    void deleteByIdWrongQuestionBankIdAndIdQuestionId(String wrongQuestionBankId, String questionId);
}


